//const 修饰结构体
# include<stdio.h>

typedef struct {
int a;
int b;
}mystruct ;

int main (void)
{
	mystruct aa ;
	aa.a = 99;
	mystruct bb;
	mystruct const *p = &aa;//说明*p只是一个可读变量
	mystruct *const q = &aa;
	//p->a = 100;//err
	p = &bb;//可行
//	q = &bb;//err
	q->a = 1000;//可行
	printf ("%d",aa.a);
	return 0;
}
